<template>
  <view @click="handleTap">
      <slot></slot>
  </view>
</template>

<script>
export default {
    props:{
        list:Array,
        index:Number
    },
    onLoad(){
        
    },
    methods:{
        handleTap(){
            getApp().globalData.imgList=this.list;
            getApp().globalData.imgIndex=this.index;
            uni.navigateTo({url:"/pages/img-detail/index"})
        }
    }
}
</script>

<style>

</style>